<!--# layout("/common/layout.html",{"jsBase":"/js/cms/sincerity/"}){ -->
<style type="text/css">
    .layui-form-checkbox{
        position: relative;
    }
</style>
<form class="layui-form " id="addForm">
    <fieldset class="layui-elem-field">
        <legend>单位诚信信息</legend>
        <div class="layui-row">
            <div class="layui-form-item">
                <label class="layui-form-label">业务事项</label>
                <div class="layui-input-inline" style="margin-left: 25px;">
                    <!--#
                            var dicts = dict.dictDownQuery("buinessType");
                            var businessTypeArray = strutil.split(sincerity.businessType,",");
                            for(dict in  dicts){
                            if(dictLP.index % 4 == 0 ){
                        -->
                </div>
                <div class="layui-input-inline">
                    <!--# } -->
                    <!--#
                    if(array.contain(businessTypeArray,dict.value)){
                    -->
                    <input type="checkbox" name="standard" value="${dict.value}" title="${dict.name}" checked="checked">
                    <!--#} -->
                    <!--# else {-->
                    <input type="checkbox" name="standard" value="${dict.value}" title="${dict.name}">
                    <!--#} -->
                    <!--#} -->
                </div>
            </div>
        </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">单位名称</label>
                <div class="layui-input-inline">
                    <select  lay-verify="required" id="名称" lay-search lay-filter="workstationName">
                        <option value="">请选择单位</option>
                    <!--#
                       for(item in enterprise){
                       -->
                            <!--# if(item.userId==sincerity.typeId){
                             -->
                            <option value="${item.userId}" codeVal="${item.organizationCode}" selected="selected">${item.enterpriseName}</option>
                            <!--# }-->
                            <!--# else{
                            -->
                            <option value="${item.userId}" codeVal="${item.organizationCode}">${item.enterpriseName}</option>
                            <!--# }-->
                    <!--# }-->
                    </select>
                    <!--<input type="text" id="enterpriseName" name="enterpriseName"   lay-verify="required" class="layui-input" value="${sincerity.enterpriseName}">-->
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">统一社会信用代码</label>
                <div class="layui-input-inline">
                    <input type="text" id="organizationCode" name="organizationCode"   lay-verify="required" class="layui-input input-readonly" readonly value="${sincerity.organizationCode}">
                </div>
            </div>
        </div>
    </div>
    </fieldset>
    <fieldset class="layui-elem-field">
        <legend>黑名单原因</legend>
        <div class="layui-field-box">
            <div class="layui-form-item layui-form-text">
                <div class="layui-input-block">
                    <textarea id="reasonsBlacklist" name="reasonsBlacklist"  class="layui-textarea">${sincerity.reasonsBlacklist}</textarea>
                </div>
            </div>
        </div>
        <!-- 业务对象须有hidden字段，保存delFlag和version字段-->
        <input type="hidden" name="id" value=${sincerity.id} />
        <layui:submitButtons id="updateButton" />
    </fieldset>
</form>
<!--#} -->
<script>

layui.use(['enterpriseadd'], function(){
    var sincerityAdd = layui.enterpriseadd
    sincerityAdd.init();
});
</script>
